<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<base href="/beadhouse/">
		<link rel="stylesheet" href="about/css/bootstrap.min.css">
		<link href="about/css/myCss.css" type="text/css" rel="stylesheet">
		<link href="about/css/main.css" type="text/css" rel="stylesheet">
		<link href="about/css/base.css" type="text/css" rel="stylesheet">
		<!--按钮样式表-->
		<link href="about/css/btn.css" type="text/css" rel="stylesheet">
		<link href="about/css/css.css" type="text/css" rel="stylesheet">
		<link href="about/css/index.css" type="text/css" rel="stylesheet">
		<link href="about/css/search.css" type="text/css" rel="stylesheet">
		
		<script src="about/js/jquery.min.js"></script>
		<script src="about/js/common.js"></script>
		<script src="about/js/bootstrap.min.js"></script>
		<!-- 支持模糊搜索的 下拉框 -->
		<link rel="stylesheet" type="text/css" href="about/css/bootstrap-select.min.css"/> 
		<script type="text/javascript" src="about/js/bootstrap-select.min.js"></script>
		<title>退住登记</title>
		
		<script type="text/javascript" src="page/retreat/retreat.js"></script>
	</head>
	<body>
		<div class="hlnr page">
			<div class="col-md-12 pd20 RightContentBody fmt10">
				<div class="col-md-3 pd0 fmt5">
					<div class="input-group inputWidth_search" >
						<input id="seleteInput" type="text" class="form-control" placeholder="客户姓名">
						<span class="input-group-addon"><button id="selectByNameBtn">查询</button></span>								
					</div>
				</div>
				<div class="col-md-9 pd0 fmt5">
					<button id="listNameBtn" class="btn btn-primary" data-toggle="modal" data-target=".myModal1"><span class="glyphicon glyphicon-plus"></span>&nbsp;退住办理</button>
				</div>			
				<div class="modal fade myModal1">
					<div class="modal-dialog">
						<div class="modal-content" style="width:100%;">
							<div class="modal-header">
								<button type="button" class="close" data-dismiss="modal" aria-label="Close">
									<span aria-hidden="true">&times;</span>
								</button>
								<span class="glyphicon glyphicon-pencil"></span>&nbsp;【退住信息】
							</div>
							<div class="modal-body clearfix" style="height: auto;">
								<div class="col-md-12 pd0">
									<div class="col-md-1 pd0 mt10"></div>
									<div class="col-md-10 pd0">
										<div class="col-md-12 pd0">
											<div class="input-group inputWidth">
												<input  hidden="hidden" type="button" id="selectAllBtn" />
												<span class="input-group-addon titleWidth">&nbsp;&nbsp;退住客户：</span>
												
												<select  class="form-control" id="optionName">
													<option value="">--请选择--</option>
													
												</select>
											</div>
										</div>
									</div>
									<div class="col-md-1 pd0"></div>
								</div>							
								<div class="col-md-12 pd0 mt10">
									<div class="col-md-1 pd0"></div>
									<div class="col-md-10 pd0">
										<div class="col-md-12 pd0">
											<div class="input-group inputWidth">
												<span class="input-group-addon titleWidth">&nbsp;&nbsp;退住类型：</span>
												<select id="retreatTypeInput" class="form-control" >
													<option>正常退住</option>
													<option>死亡退住</option>
													<option>保留床位</option>
													<option>其他</option>
												</select>
											</div>
										</div>
									</div>
									<div class="col-md-1 pd0"></div>
								</div>
								<div class="col-md-12 pd0 mt10">
									<div class="col-md-1 pd0"></div>
									<div class="col-md-10 pd0">
										<div class="col-md-12 pd0">
											<div class="input-group inputWidth">
												<span class="input-group-addon titleWidth">&nbsp;&nbsp;退住原因：</span>
												<input id="retreatReasonInput" type="text" class="form-control">
											</div>
										</div>
									</div>
									<div class="col-md-1 pd0"></div>
								</div>
								<div class="col-md-12 pd0 mt10">
									<div class="col-md-1 pd0"></div>
									<div class="col-md-10 pd0">
										<div class="col-md-12 pd0">
											<div class="input-group inputWidth">
												<span class="input-group-addon titleWidth">&nbsp;&nbsp;退住时间：</span>
												<input id="retreatTimeInput" type="date" class="form-control">
											</div>
										</div>
									</div>
									<div class="col-md-1 pd0"></div>
								</div>
								<div class="col-md-12 pd0 mt10">
									<div class="col-md-1 pd0"></div>
									<div class="col-md-10 pd0">
										<div class="col-md-12 pd0">
											<div class="input-group inputWidth">
												<span class="input-group-addon titleWidth">&nbsp;&nbsp;申请时间：</span>
												<input id="createTimeInput" type="date" class="form-control">
											</div>
										</div>
									</div>
									<div class="col-md-1 pd0"></div>
								</div>
								
							</div>
							<div class="modal-footer mt20">
								<button id="addBtn" type="button" class="btn btn-primary" data-dismiss="modal">
									确定
								</button>
								<button type="button" class="btn btn-default" data-dismiss="modal">
									取消
								</button>
							</div>
						</div>
					</div>
				</div>
				
											
				<div class="col-md-12 pd0 fmt10">
					<hr class="commonHRCss"/>
				</div>
				<div class="col-md-12 pd0">
					<table class="table table-hover">
						<thead>
							<tr>
								<th>序号</th>
								<th>客户姓名</th>
								<th>性别</th>
								<th>年龄</th>
								<th>档案号</th>
								<th>入住时间</th>
								<th>退住时间</th>
								<th>退住类型</th>
								<th>退住原因</th>
								
								<th>操作</th>
							</tr>
						</thead>
						<tbody id="tbody">
							<tr>
							<td>
								
								
								</td>
							</tr>
							
						</tbody>
					</table>
				</div>
				
				
				
			
				<div class="modal fade myModal2">
					<div class="modal-dialog">
						<div class="modal-content" style="width:100%;">
							<div class="modal-header">
								<button type="button" class="close" data-dismiss="modal" aria-label="Close">
									<span aria-hidden="true">&times;</span>
								</button>
								<span class="glyphicon glyphicon-pencil"></span>&nbsp;【退住信息修改】
							</div>
							<div class="modal-body clearfix" style="height: auto;">
														
								
								<div class="col-md-12 pd0 mt10">
									<div class="col-md-1 pd0"></div>
									<div class="col-md-10 pd0">
										<div class="col-md-12 pd0">
											<div class="input-group inputWidth">
												<span class="input-group-addon titleWidth">&nbsp;&nbsp;退住原因：</span>
												<input id="updateRetreatReasonInput" name="retreatReason" type="text" class="form-control">
											</div>
										</div>
									</div>
									<div class="col-md-1 pd0"></div>
								</div>
								<div class="col-md-12 pd0 mt10">
									<div class="col-md-1 pd0"></div>
									<div class="col-md-10 pd0">
										<div class="col-md-12 pd0">
											<div class="input-group inputWidth">
												<span class="input-group-addon titleWidth">&nbsp;&nbsp;退住类型：</span>
												<select id="updateRetreatTypeInput" class="form-control" >
													<option>正常退住</option>
													<option>死亡退住</option>
													<option>保留床位</option>
													<option>其他</option>
												</select>
											</div>
										</div>
									</div>
									<div class="col-md-1 pd0"></div>
								</div>
								<div class="col-md-12 pd0 mt10">
									<div class="col-md-1 pd0"></div>
									<div class="col-md-10 pd0">
										<div class="col-md-12 pd0">
											<div class="input-group inputWidth">
												<span class="input-group-addon titleWidth">&nbsp;&nbsp;退住时间：</span>
												<input id="updateRetreatTimeInput" name="RetreatTime" type="date" class="form-control">
											</div>
										</div>
									</div>
									<div class="col-md-1 pd0"></div>
								</div>
								<div class="col-md-12 pd0 mt10">
									<div class="col-md-1 pd0"></div>
									<div class="col-md-10 pd0">
										<div class="col-md-12 pd0">
											<div class="input-group inputWidth">
												<span class="input-group-addon titleWidth">&nbsp;&nbsp;申请时间：</span>
												<input id="updateUpdateTimeInput" name="updateTime" type="date" class="form-control">
											</div>
										</div>
									</div>
									<div class="col-md-1 pd0"></div>
								</div>
								
							</div>
							<div class="modal-footer mt20">
								<button onclick="updateRetreat()"  class="btn btn-primary" data-dismiss="modal">
									确定
								</button>
								<button type="button" class="btn btn-default" data-dismiss="modal">
									取消
								</button>
							</div>
						</div>
					</div>
				</div>
				<div class="col-md-12 pd0" id="divsys">
				</div>

			</div>
		</div>
	</body>
	
	
</html>
